{
  "properties" : { },
  "id" : "74a80af23aec49f4b7be263837850279",
  "script" : null,
  "groupId" : "f2a318ab75a44534b6744b38c923f12f",
  "name" : "详情",
  "createTime" : null,
  "updateTime" : 1731323282260,
  "lock" : "1",
  "createBy" : null,
  "updateBy" : null,
  "path" : "detail",
  "method" : "GET",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : null,
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
import 'cn.dev33.satoken.stp.StpUtil';
import "@post:/system/security/permissions" as authoritiesList; 

var user = db.table("sys_user").where().eq("id",StpUtil.getLoginId()).selectOne()
user.authorities = authoritiesList()
return user